home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / perl5000.zip / perl5000 / config_h.SH < prev    next >
Text File  |  1994-10-17  |  43KB  |  1,421 lines

  1. case $CONFIG in
  2. '')
  3.     if test -f config.sh; then TOP=.;
  4.     elif test -f ../config.sh; then TOP=..;
  5.     elif test -f ../../config.sh; then TOP=../..;
  6.     elif test -f ../../../config.sh; then TOP=../../..;
  7.     elif test -f ../../../../config.sh; then TOP=../../../..;
  8.     else
  9.         echo "Can't find config.sh."; exit 1
  10.     fi
  11.     . $TOP/config.sh
  12.     ;;
  13. esac
  14. case "$0" in
  15. */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  16. esac
  17. echo "Extracting config.h (with variable substitutions)"
  18. sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
  19. /*
  20.  * This file was produced by running the config_h.SH script, which
  21.  * gets its values from config.sh, which is generally produced by
  22.  * running Configure.
  23.  *
  24.  * Feel free to modify any of this as the need arises.  Note, however,
  25.  * that running config.h.SH again will wipe out any changes you've made.
  26.  * For a more permanent change edit config.sh and rerun config.h.SH.
  27.  *
  28.  * Config_h.U
  29.  */
  30.  
  31. /* Configuration time: $cf_time
  32.  * Configured by: $cf_by
  33.  * Target system: $myuname
  34.  */
  35.  
  36. #ifndef _config_h_
  37. #define _config_h_
  38.  
  39. /* MEM_ALIGNBYTES:
  40.  *    This symbol contains the number of bytes required to align a
  41.  *    double. Usual values are 2, 4 and 8.
  42.  */
  43. #define MEM_ALIGNBYTES $alignbytes    /**/
  44.  
  45. /* BIN:
  46.  *    This symbol holds the path of the bin directory where the package will
  47.  *    be installed. Program must be prepared to deal with ~name substitution.
  48.  */
  49. #define BIN "$bin"    /**/
  50.  
  51. /* BYTEORDER:
  52.  *    This symbol hold the hexadecimal constant defined in byteorder,
  53.  *    i.e. 0x1234 or 0x4321, etc...
  54.  */
  55. #define BYTEORDER 0x$byteorder    /* large digits for MSB */
  56.  
  57. /* CPPSTDIN:
  58.  *    This symbol contains the first part of the string which will invoke
  59.  *    the C preprocessor on the standard input and produce to standard
  60.  *    output.     Typical value of "cc -E" or "/lib/cpp", but it can also
  61.  *    call a wrapper. See CPPRUN.
  62.  */
  63. /* CPPMINUS:
  64.  *    This symbol contains the second part of the string which will invoke
  65.  *    the C preprocessor on the standard input and produce to standard
  66.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  67.  *    to specify standard input, otherwise the value is "".
  68.  */
  69. #define CPPSTDIN "$cppstdin"
  70. #define CPPMINUS "$cppminus"
  71.  
  72. /* HAS_ALARM:
  73.  *    This symbol, if defined, indicates that the alarm routine is
  74.  *    available.
  75.  */
  76. #$d_alarm HAS_ALARM        /**/
  77.  
  78. /* HAS_BCMP:
  79.  *    This symbol is defined if the bcmp() routine is available to
  80.  *    compare blocks of memory.
  81.  */
  82. #$d_bcmp HAS_BCMP    /**/
  83.  
  84. /* HAS_BCOPY:
  85.  *    This symbol is defined if the bcopy() routine is available to
  86.  *    copy blocks of memory.
  87.  */
  88. #$d_bcopy HAS_BCOPY    /**/
  89.  
  90. /* HAS_BZERO:
  91.  *    This symbol is defined if the bzero() routine is available to
  92.  *    set a memory block to 0.
  93.  */
  94. #$d_bzero HAS_BZERO    /**/
  95.  
  96. /* CASTI32:
  97.  *    This symbol is defined if the C compiler can cast negative
  98.  *    or large floating point numbers to 32-bit ints.
  99.  */
  100. #$d_casti32    CASTI32        /**/
  101.  
  102. /* CASTNEGFLOAT:
  103.  *    This symbol is defined if the C compiler can cast negative
  104.  *    numbers to unsigned longs, ints and shorts.
  105.  */
  106. /* CASTFLAGS:
  107.  *    This symbol contains flags that say what difficulties the compiler
  108.  *    has casting odd floating values to unsigned long:
  109.  *        0 = ok
  110.  *        1 = couldn't cast < 0
  111.  *        2 = couldn't cast >= 0x80000000
  112.  */
  113. #$d_castneg    CASTNEGFLOAT        /**/
  114. #define CASTFLAGS $castflags        /**/
  115.  
  116. /* CHARSPRINTF:
  117.  *    This symbol is defined if this system declares "char *sprintf()" in
  118.  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  119.  *    is up to the package author to declare sprintf correctly based on the
  120.  *    symbol.
  121.  */
  122. #$d_charsprf    CHARSPRINTF     /**/
  123.  
  124. /* HAS_CHOWN:
  125.  *    This symbol, if defined, indicates that the chown routine is
  126.  *    available.
  127.  */
  128. #$d_chown HAS_CHOWN        /**/
  129.  
  130. /* HAS_CHROOT:
  131.  *    This symbol, if defined, indicates that the chroot routine is
  132.  *    available.
  133.  */
  134. #$d_chroot HAS_CHROOT        /**/
  135.  
  136. /* HAS_CHSIZE:
  137.  *    This symbol, if defined, indicates that the chsize routine is available
  138.  *    to truncate files.  You might need a -lx to get this routine.
  139.  */
  140. #$d_chsize    HAS_CHSIZE        /**/
  141.  
  142. /* HASCONST:
  143.  *    This symbol, if defined, indicates that this C compiler knows about
  144.  *    the const type. There is no need to actually test for that symbol
  145.  *    within your programs. The mere use of the "const" keyword will
  146.  *    trigger the necessary tests.
  147.  */
  148. #$d_const HASCONST    /**/
  149. #ifndef HASCONST
  150. #define const
  151. #endif
  152.  
  153. /* HAS_CRYPT:
  154.  *    This symbol, if defined, indicates that the crypt routine is available
  155.  *    to encrypt passwords and the like.
  156.  */
  157. #$d_crypt HAS_CRYPT        /**/
  158.  
  159. /* CSH:
  160.  *    This symbol, if defined, indicates that the C-shell exists.
  161.  *    If defined, contains the full pathname of csh.
  162.  */
  163. #$d_csh CSH "$csh"        /**/
  164.  
  165. /* HAS_CUSERID:
  166.  *    This symbol, if defined, indicates that the cuserid routine is
  167.  *    available to get character login names.
  168.  */
  169. #$d_cuserid HAS_CUSERID        /**/
  170.  
  171. /* HAS_DBL_DIG:
  172.  *    This symbol, if defined, indicates that this system's <float.h>
  173.  *    or <limits.h> defines the symbol DBL_DIG, which is the number
  174.  *    of significant digits in a double precision number.  If this
  175.  *    symbol is not defined, a guess of 15 is usually pretty good.
  176.  */
  177. #$d_dbl_dig HAS_DBL_DIG     /* */
  178.  
  179. /* HAS_DIFFTIME:
  180.  *    This symbol, if defined, indicates that the difftime routine is
  181.  *    available.
  182.  */
  183. #$d_difftime HAS_DIFFTIME        /**/
  184.  
  185. /* HAS_DUP2:
  186.  *    This symbol, if defined, indicates that the dup2 routine is
  187.  *    available to duplicate file descriptors.
  188.  */
  189. #$d_dup2 HAS_DUP2    /**/
  190.  
  191. /* HAS_FCHMOD:
  192.  *    This symbol, if defined, indicates that the fchmod routine is available
  193.  *    to change mode of opened files.  If unavailable, use chmod().
  194.  */
  195. #$d_fchmod HAS_FCHMOD        /**/
  196.  
  197. /* HAS_FCHOWN:
  198.  *    This symbol, if defined, indicates that the fchown routine is available
  199.  *    to change ownership of opened files.  If unavailable, use chown().
  200.  */
  201. #$d_fchown HAS_FCHOWN        /**/
  202.  
  203. /* HAS_FCNTL:
  204.  *    This symbol, if defined, indicates to the C program that
  205.  *    the fcntl() function exists.
  206.  */
  207. #$d_fcntl HAS_FCNTL        /**/
  208.  
  209. /* HAS_FGETPOS:
  210.  *    This symbol, if defined, indicates that the fgetpos routine is
  211.  *    available to get the file position indicator, similar to ftell().
  212.  */
  213. #$d_fgetpos HAS_FGETPOS    /**/
  214.  
  215. /* FLEXFILENAMES:
  216.  *    This symbol, if defined, indicates that the system supports filenames
  217.  *    longer than 14 characters.
  218.  */
  219. #$d_flexfnam    FLEXFILENAMES        /**/
  220.  
  221. /* HAS_FLOCK:
  222.  *    This symbol, if defined, indicates that the flock routine is
  223.  *    available to do file locking.
  224.  */
  225. #$d_flock HAS_FLOCK        /**/
  226.  
  227. /* HAS_FORK:
  228.  *    This symbol, if defined, indicates that the fork routine is
  229.  *    available.
  230.  */
  231. #$d_fork HAS_FORK        /**/
  232.  
  233. /* HAS_FSETPOS:
  234.  *    This symbol, if defined, indicates that the fsetpos routine is
  235.  *    available to set the file position indicator, similar to fseek().
  236.  */
  237. #$d_fsetpos HAS_FSETPOS    /**/
  238.  
  239. /* HAS_GETGROUPS:
  240.  *    This symbol, if defined, indicates that the getgroups() routine is
  241.  *    available to get the list of process groups.  If unavailable, multiple
  242.  *    groups are probably not supported.
  243.  */
  244. #$d_getgrps HAS_GETGROUPS        /**/
  245.  
  246. /* HAS_GETHOSTENT:
  247.  *    This symbol, if defined, indicates that the gethostent routine is
  248.  *    available to lookup host names in some data base or other.
  249.  */
  250. #$d_gethent HAS_GETHOSTENT        /**/
  251.  
  252. /* HAS_UNAME:
  253.  *    This symbol, if defined, indicates that the C program may use the
  254.  *    uname() routine to derive the host name.  See also HAS_GETHOSTNAME
  255.  *    and PHOSTNAME.
  256.  */
  257. #$d_uname HAS_UNAME        /**/
  258.  
  259. /* HAS_GETLOGIN:
  260.  *    This symbol, if defined, indicates that the getlogin routine is
  261.  *    available to get the login name.
  262.  */
  263. #$d_getlogin HAS_GETLOGIN        /**/
  264.  
  265. /* HAS_GETPGRP:
  266.  *    This symbol, if defined, indicates that the getpgrp routine is
  267.  *    available to get the current process group.
  268.  */
  269. #$d_getpgrp HAS_GETPGRP        /**/
  270.  
  271. /* HAS_GETPGRP2:
  272.  *    This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
  273.  *    routine is available to get the current process group.
  274.  */
  275. #$d_getpgrp2 HAS_GETPGRP2        /**/
  276.  
  277. /* HAS_GETPPID:
  278.  *    This symbol, if defined, indicates that the getppid routine is
  279.  *    available to get the parent process ID.
  280.  */
  281. #$d_getppid HAS_GETPPID        /**/
  282.  
  283. /* HAS_GETPRIORITY:
  284.  *    This symbol, if defined, indicates that the getpriority routine is
  285.  *    available to get a process's priority.
  286.  */
  287. #$d_getprior HAS_GETPRIORITY        /**/
  288.  
  289. /* HAS_GROUP:
  290.  *    This symbol, if defined, indicates that the group routine is
  291.  *    available.
  292.  */
  293. #$d_group HAS_GROUP        /**/
  294.  
  295. /* HAS_HTONL:
  296.  *    This symbol, if defined, indicates that the htonl() routine (and
  297.  *    friends htons() ntohl() ntohs()) are available to do network
  298.  *    order byte swapping.
  299.  */
  300. /* HAS_HTONS:
  301.  *    This symbol, if defined, indicates that the htons() routine (and
  302.  *    friends htonl() ntohl() ntohs()) are available to do network
  303.  *    order byte swapping.
  304.  */
  305. /* HAS_NTOHL:
  306.  *    This symbol, if defined, indicates that the ntohl() routine (and
  307.  *    friends htonl() htons() ntohs()) are available to do network
  308.  *    order byte swapping.
  309.  */
  310. /* HAS_NTOHS:
  311.  *    This symbol, if defined, indicates that the ntohs() routine (and
  312.  *    friends htonl() htons() ntohl()) are available to do network
  313.  *    order byte swapping.
  314.  */
  315. #$d_htonl HAS_HTONL        /**/
  316. #$d_htonl HAS_HTONS        /**/
  317. #$d_htonl HAS_NTOHL        /**/
  318. #$d_htonl HAS_NTOHS        /**/
  319.  
  320. /* HAS_KILLPG:
  321.  *    This symbol, if defined, indicates that the killpg routine is available
  322.  *    to kill process groups.  If unavailable, you probably should use kill
  323.  *    with a negative process number.
  324.  */
  325. #$d_killpg HAS_KILLPG    /**/
  326.  
  327. /* HAS_LINK:
  328.  *    This symbol, if defined, indicates that the link routine is
  329.  *    available to create hard links.
  330.  */
  331. #$d_link HAS_LINK    /**/
  332.  
  333. /* HAS_LOCKF:
  334.  *    This symbol, if defined, indicates that the lockf routine is
  335.  *    available to do file locking.
  336.  */
  337. #$d_lockf HAS_LOCKF        /**/
  338.  
  339. /* HAS_LSTAT:
  340.  *    This symbol, if defined, indicates that the lstat routine is
  341.  *    available to do file stats on symbolic links.
  342.  */
  343. #$d_lstat HAS_LSTAT        /**/
  344.  
  345. /* HAS_MBLEN:
  346.  *    This symbol, if defined, indicates that the mblen routine is available
  347.  *    to find the number of bytes in a multibye character.
  348.  */
  349. #$d_mblen HAS_MBLEN        /**/
  350.  
  351. /* HAS_MBSTOWCS:
  352.  *    This symbol, if defined, indicates that the mbstowcs routine is
  353.  *    available to covert a multibyte string into a wide character string.
  354.  */
  355. #$d_mbstowcs    HAS_MBSTOWCS        /**/
  356.  
  357. /* HAS_MBTOWC:
  358.  *    This symbol, if defined, indicates that the mbtowc routine is available
  359.  *    to covert a multibyte to a wide character.
  360.  */
  361. #$d_mbtowc HAS_MBTOWC        /**/
  362.  
  363. /* HAS_MEMCMP:
  364.  *    This symbol, if defined, indicates that the memcmp routine is available
  365.  *    to compare blocks of memory.
  366.  */
  367. #$d_memcmp HAS_MEMCMP    /**/
  368.  
  369. /* HAS_MEMCPY:
  370.  *    This symbol, if defined, indicates that the memcpy routine is available
  371.  *    to copy blocks of memory.
  372.  */
  373. #$d_memcpy HAS_MEMCPY    /**/
  374.  
  375. /* HAS_MEMMOVE:
  376.  *    This symbol, if defined, indicates that the memmove routine is available
  377.  *    to copy potentially overlapping blocks of memory. This should be used
  378.  *    only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
  379.  *    own version.
  380.  */
  381. #$d_memmove HAS_MEMMOVE    /**/
  382.  
  383. /* HAS_MEMSET:
  384.  *    This symbol, if defined, indicates that the memset routine is available
  385.  *    to set blocks of memory.
  386.  */
  387. #$d_memset HAS_MEMSET    /**/
  388.  
  389. /* HAS_MKDIR:
  390.  *    This symbol, if defined, indicates that the mkdir routine is available
  391.  *    to create directories.  Otherwise you should fork off a new process to
  392.  *    exec /bin/mkdir.
  393.  */
  394. #$d_mkdir HAS_MKDIR        /**/
  395.  
  396. /* HAS_MKTIME:
  397.  *    This symbol, if defined, indicates that the mktime routine is
  398.  *    available.
  399.  */
  400. #$d_mktime HAS_MKTIME        /**/
  401.  
  402. /* HAS_MSG:
  403.  *    This symbol, if defined, indicates that the entire msg*(2) library is
  404.  *    supported (IPC mechanism based on message queues).
  405.  */
  406. #$d_msg HAS_MSG        /**/
  407.  
  408. /* HAS_NICE:
  409.  *    This symbol, if defined, indicates that the nice routine is
  410.  *    available.
  411.  */
  412. #$d_nice HAS_NICE        /**/
  413.  
  414. /* HAS_OPEN3:
  415.  *    This manifest constant lets the C program know that the three
  416.  *    argument form of open(2) is available.
  417.  */
  418. #$d_open3 HAS_OPEN3        /**/
  419.  
  420. /* HAS_PASSWD:
  421.  *    This symbol, if defined, indicates that the passwd routine is
  422.  *    available.
  423.  */
  424. #$d_passwd HAS_PASSWD        /**/
  425.  
  426. /* HAS_PAUSE:
  427.  *    This symbol, if defined, indicates that the pause routine is
  428.  *    available to suspend a process until a signal is received.
  429.  */
  430. #$d_pause HAS_PAUSE        /**/
  431.  
  432. /* HAS_PIPE:
  433.  *    This symbol, if defined, indicates that the pipe routine is
  434.  *    available to create an inter-process channel.
  435.  */
  436. #$d_pipe HAS_PIPE        /**/
  437.  
  438. /* HAS_READDIR:
  439.  *    This symbol, if defined, indicates that the readdir routine is
  440.  *    available to read directory entries. You may have to include
  441.  *    <dirent.h>. See I_DIRENT.
  442.  */
  443. #$d_readdir HAS_READDIR        /**/
  444.  
  445. /* HAS_SEEKDIR:
  446.  *    This symbol, if defined, indicates that the seekdir routine is
  447.  *    available. You may have to include <dirent.h>. See I_DIRENT.
  448.  */
  449. #$d_seekdir HAS_SEEKDIR        /**/
  450.  
  451. /* HAS_TELLDIR:
  452.  *    This symbol, if defined, indicates that the telldir routine is
  453.  *    available. You may have to include <dirent.h>. See I_DIRENT.
  454.  */
  455. #$d_telldir HAS_TELLDIR        /**/
  456.  
  457. /* HAS_REWINDDIR:
  458.  *    This symbol, if defined, indicates that the rewinddir routine is
  459.  *    available. You may have to include <dirent.h>. See I_DIRENT.
  460.  */
  461. #$d_rewinddir HAS_REWINDDIR        /**/
  462.  
  463. /* HAS_READLINK:
  464.  *    This symbol, if defined, indicates that the readlink routine is
  465.  *    available to read the value of a symbolic link.
  466.  */
  467. #$d_readlink HAS_READLINK        /**/
  468.  
  469. /* HAS_RENAME:
  470.  *    This symbol, if defined, indicates that the rename routine is available
  471.  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  472.  *    trick.
  473.  */
  474. #$d_rename HAS_RENAME    /**/
  475.  
  476. /* HAS_RMDIR:
  477.  *    This symbol, if defined, indicates that the rmdir routine is
  478.  *    available to remove directories. Otherwise you should fork off a
  479.  *    new process to exec /bin/rmdir.
  480.  */
  481. #$d_rmdir HAS_RMDIR        /**/
  482.  
  483. /* HAS_SELECT:
  484.  *    This symbol, if defined, indicates that the select routine is
  485.  *    available to select active file descriptors. If the timeout field
  486.  *    is used, <sys/time.h> may need to be included.
  487.  */
  488. #$d_select HAS_SELECT    /**/
  489.  
  490. /* HAS_SEM:
  491.  *    This symbol, if defined, indicates that the entire sem*(2) library is
  492.  *    supported.
  493.  */
  494. #$d_sem HAS_SEM        /**/
  495.  
  496. /* HAS_SETEGID:
  497.  *    This symbol, if defined, indicates that the setegid routine is available
  498.  *    to change the effective gid of the current program.
  499.  */
  500. #$d_setegid HAS_SETEGID        /**/
  501.  
  502. /* HAS_SETEUID:
  503.  *    This symbol, if defined, indicates that the seteuid routine is available
  504.  *    to change the effective uid of the current program.
  505.  */
  506. #$d_seteuid HAS_SETEUID        /**/
  507.  
  508. /* HAS_SETLINEBUF:
  509.  *    This symbol, if defined, indicates that the setlinebuf routine is
  510.  *    available to change stderr or stdout from block-buffered or unbuffered
  511.  *    to a line-buffered mode.
  512.  */
  513. #$d_setlinebuf HAS_SETLINEBUF        /**/
  514.  
  515. /* HAS_SETLOCALE:
  516.  *    This symbol, if defined, indicates that the setlocale routine is
  517.  *    available to handle locale-specific ctype implementations.
  518.  */
  519. #$d_setlocale HAS_SETLOCALE    /**/
  520.  
  521. /* HAS_SETPGID:
  522.  *    This symbol, if defined, indicates that the setpgid routine is
  523.  *    available to set process group ID.
  524.  */
  525. #$d_setpgid HAS_SETPGID    /**/
  526.  
  527. /* HAS_SETPGRP2:
  528.  *    This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
  529.  *    routine is available to set the current process group.
  530.  */
  531. #$d_setpgrp2 HAS_SETPGRP2        /**/
  532.  
  533. /* HAS_SETPRIORITY:
  534.  *    This symbol, if defined, indicates that the setpriority routine is
  535.  *    available to set a process's priority.
  536.  */
  537. #$d_setprior HAS_SETPRIORITY        /**/
  538.  
  539. /* HAS_SETREGID:
  540.  *    This symbol, if defined, indicates that the setregid routine is
  541.  *    available to change the real and effective gid of the current
  542.  *    process.
  543.  */
  544. /* HAS_SETRESGID:
  545.  *    This symbol, if defined, indicates that the setresgid routine is
  546.  *    available to change the real, effective and saved gid of the current
  547.  *    process.
  548.  */
  549. #$d_setregid HAS_SETREGID        /**/
  550. #$d_setresgid HAS_SETRESGID        /**/
  551.  
  552. /* HAS_SETREUID:
  553.  *    This symbol, if defined, indicates that the setreuid routine is
  554.  *    available to change the real and effective uid of the current
  555.  *    process.
  556.  */
  557. /* HAS_SETRESUID:
  558.  *    This symbol, if defined, indicates that the setresuid routine is
  559.  *    available to change the real, effective and saved uid of the current
  560.  *    process.
  561.  */
  562. #$d_setreuid HAS_SETREUID        /**/
  563. #$d_setresuid HAS_SETRESUID        /**/
  564.  
  565. /* HAS_SETRGID:
  566.  *    This symbol, if defined, indicates that the setrgid routine is available
  567.  *    to change the real gid of the current program.
  568.  */
  569. #$d_setrgid HAS_SETRGID        /**/
  570.  
  571. /* HAS_SETRUID:
  572.  *    This symbol, if defined, indicates that the setruid routine is available
  573.  *    to change the real uid of the current program.
  574.  */
  575. #$d_setruid HAS_SETRUID        /**/
  576.  
  577. /* HAS_SETSID:
  578.  *    This symbol, if defined, indicates that the setsid routine is
  579.  *    available to set the process group ID.
  580.  */
  581. #$d_setsid HAS_SETSID    /**/
  582.  
  583. /* HAS_SHM:
  584.  *    This symbol, if defined, indicates that the entire shm*(2) library is
  585.  *    supported.
  586.  */
  587. #$d_shm HAS_SHM        /**/
  588.  
  589. /* Shmat_t:
  590.  *    This symbol holds the return type of the shmat() system call.
  591.  *    Usually set to 'void *' or 'char *'.
  592.  */
  593. /* HAS_SHMAT_PROTOTYPE:
  594.  *    This symbol, if defined, indicates that the sys/shm.h includes
  595.  *    a prototype for shmat().  Otherwise, it is up to the program to
  596.  *    guess one.  Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
  597.  *    but not always right so it should be emitted by the program only
  598.  *    when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
  599.  */
  600. #define Shmat_t $shmattype    /**/
  601. #$d_shmatprototype HAS_SHMAT_PROTOTYPE    /**/
  602.  
  603. /* HAS_SOCKET:
  604.  *    This symbol, if defined, indicates that the BSD socket interface is
  605.  *    supported.
  606.  */
  607. /* HAS_SOCKETPAIR:
  608.  *    This symbol, if defined, indicates that the BSD socketpair() call is
  609.  *    supported.
  610.  */
  611. #$d_socket HAS_SOCKET        /**/
  612. #$d_sockpair HAS_SOCKETPAIR    /**/
  613.  
  614. /* USE_STAT_BLOCKS:
  615.  *    This symbol is defined if this system has a stat structure declaring
  616.  *    st_blksize and st_blocks.
  617.  */
  618. #$d_statblks USE_STAT_BLOCKS     /**/
  619.  
  620. /* USE_STD_STDIO:
  621.  *    This symbol is defined if this system has a FILE structure declaring
  622.  *    _ptr and _cnt in stdio.h.
  623.  */
  624. #$d_stdstdio USE_STD_STDIO     /**/
  625.  
  626. /* HAS_STRCHR:
  627.  *    This symbol is defined to indicate that the strchr()/strrchr()
  628.  *    functions are available for string searching. If not, try the
  629.  *    index()/rindex() pair.
  630.  */
  631. /* HAS_INDEX:
  632.  *    This symbol is defined to indicate that the index()/rindex()
  633.  *    functions are available for string searching.
  634.  */
  635. #$d_strchr HAS_STRCHR    /**/
  636. #$d_index HAS_INDEX    /**/
  637.  
  638. /* HAS_STRCOLL:
  639.  *    This symbol, if defined, indicates that the strcoll routine is
  640.  *    available to compare strings using collating information.
  641.  */
  642. #$d_strcoll HAS_STRCOLL    /**/
  643.  
  644. /* USE_STRUCT_COPY:
  645.  *    This symbol, if defined, indicates that this C compiler knows how
  646.  *    to copy structures.  If undefined, you'll need to use a block copy
  647.  *    routine of some sort instead.
  648.  */
  649. #$d_strctcpy    USE_STRUCT_COPY    /**/
  650.  
  651. /* HAS_STRERROR:
  652.  *    This symbol, if defined, indicates that the strerror routine is
  653.  *    available to translate error numbers to strings. See the writeup
  654.  *    of Strerror() in this file before you try to define your own.
  655.  */
  656. /* HAS_SYS_ERRLIST:
  657.  *    This symbol, if defined, indicates that the sys_errlist array is
  658.  *    available to translate error numbers to strings. The extern int
  659.  *    sys_nerr gives the size of that table.
  660.  */
  661. /* Strerror:
  662.  *    This preprocessor symbol is defined as a macro if strerror() is
  663.  *    not available to translate error numbers to strings but sys_errlist[]
  664.  *    array is there.
  665.  */
  666. #$d_strerror HAS_STRERROR        /**/
  667. #$d_syserrlst HAS_SYS_ERRLIST    /**/
  668. #define Strerror(e) $d_strerrm
  669.  
  670. /* HAS_STRXFRM:
  671.  *    This symbol, if defined, indicates that the strxfrm() routine is
  672.  *    available to transform strings.
  673.  */
  674. #$d_strxfrm HAS_STRXFRM    /**/
  675.  
  676. /* HAS_SYMLINK:
  677.  *    This symbol, if defined, indicates that the symlink routine is available
  678.  *    to create symbolic links.
  679.  */
  680. #$d_symlink HAS_SYMLINK    /**/
  681.  
  682. /* HAS_SYSCALL:
  683.  *    This symbol, if defined, indicates that the syscall routine is
  684.  *    available to call arbitrary system calls. If undefined, that's tough.
  685.  */
  686. #$d_syscall HAS_SYSCALL    /**/
  687.  
  688. /* HAS_SYSTEM:
  689.  *    This symbol, if defined, indicates that the system routine is
  690.  *    available to issue a shell command.
  691.  */
  692. #$d_system HAS_SYSTEM    /**/
  693.  
  694. /* HAS_TCGETPGRP:
  695.  *    This symbol, if defined, indicates that the tcgetpgrp routine is
  696.  *    available to get foreground process group ID.
  697.  */
  698. #$d_tcgetpgrp HAS_TCGETPGRP        /**/
  699.  
  700. /* HAS_TCSETPGRP:
  701.  *    This symbol, if defined, indicates that the tcsetpgrp routine is
  702.  *    available to set foreground process group ID.
  703.  */
  704. #$d_tcsetpgrp HAS_TCSETPGRP        /**/
  705.  
  706. /* HAS_TIMES:
  707.  *    This symbol, if defined, indicates that the times() routine exists.
  708.  *    Note that this became obsolete on some systems (SUNOS), which now
  709.  * use getrusage(). It may be necessary to include <sys/times.h>.
  710.  */
  711. #$d_times HAS_TIMES        /**/
  712.  
  713. /* HAS_TRUNCATE:
  714.  *    This symbol, if defined, indicates that the truncate routine is
  715.  *    available to truncate files.
  716.  */
  717. #$d_truncate HAS_TRUNCATE    /**/
  718.  
  719. /* HAS_TZNAME:
  720.  *    This symbol, if defined, indicates that the tzname[] array is
  721.  *    available to access timezone names.
  722.  */
  723. #$d_tzname HAS_TZNAME        /**/
  724.  
  725. /* HAS_UMASK:
  726.  *    This symbol, if defined, indicates that the umask routine is
  727.  *    available to set and get the value of the file creation mask.
  728.  */
  729. #$d_umask HAS_UMASK        /**/
  730.  
  731. /* HAS_VFORK:
  732.  *    This symbol, if defined, indicates that vfork() exists.
  733.  */
  734. #$d_vfork HAS_VFORK    /**/
  735.  
  736. /* VOIDSIG:
  737.  *    This symbol is defined if this system declares "void (*signal(...))()" in
  738.  *    signal.h.  The old way was to declare it as "int (*signal(...))()".  It
  739.  *    is up to the package author to declare things correctly based on the
  740.  *    symbol.
  741.  */
  742. #$d_voidsig VOIDSIG     /**/
  743.  
  744. /* HASVOLATILE:
  745.  *    This symbol, if defined, indicates that this C compiler knows about
  746.  *    the volatile declaration.
  747.  */
  748. #$d_volatile    HASVOLATILE    /**/
  749. #ifndef HASVOLATILE
  750. #define volatile
  751. #endif
  752.  
  753. /* HAS_VPRINTF:
  754.  *    This symbol, if defined, indicates that the vprintf routine is available
  755.  *    to printf with a pointer to an argument list.  If unavailable, you
  756.  *    may need to write your own, probably in terms of _doprnt().
  757.  */
  758. /* USE_CHAR_VSPRINTF:
  759.  *    This symbol is defined if this system has vsprintf() returning type
  760.  *    (char*).  The trend seems to be to declare it as "int vsprintf()".  It
  761.  *    is up to the package author to declare vsprintf correctly based on the
  762.  *    symbol.
  763.  */
  764. #$d_vprintf HAS_VPRINTF    /**/
  765. #$d_charvspr USE_CHAR_VSPRINTF     /**/
  766.  
  767. /* HAS_WAIT4:
  768.  *    This symbol, if defined, indicates that wait4() exists.
  769.  */
  770. #$d_wait4 HAS_WAIT4    /**/
  771.  
  772. /* HAS_WAITPID:
  773.  *    This symbol, if defined, indicates that the waitpid routine is
  774.  *    available to wait for child process.
  775.  */
  776. #$d_waitpid HAS_WAITPID    /**/
  777.  
  778. /* HAS_WCSTOMBS:
  779.  *    This symbol, if defined, indicates that the wcstombs routine is
  780.  *    available to convert wide character strings to multibyte strings.
  781.  */
  782. #$d_wcstombs HAS_WCSTOMBS    /**/
  783.  
  784. /* HAS_WCTOMB:
  785.  *    This symbol, if defined, indicates that the wctomb routine is available
  786.  *    to covert a wide character to a multibyte.
  787.  */
  788. #$d_wctomb HAS_WCTOMB        /**/
  789.  
  790. /* Fpos_t:
  791.  *    This symbol holds the type used to declare file positions in libc.
  792.  *    It can be fpos_t, long, uint, etc... It may be necessary to include
  793.  *    <sys/types.h> to get any typedef'ed information.
  794.  */
  795. #define Fpos_t $fpostype        /* File position type */
  796.  
  797. /* Gid_t:
  798.  *    This symbol holds the return type of getgid() and the type of
  799.  *    argument to setrgid() and related functions.  Typically,
  800.  *    it is the type of group ids in the kernel. It can be int, ushort,
  801.  *    uid_t, etc... It may be necessary to include <sys/types.h> to get
  802.  *    any typedef'ed information.
  803.  */
  804. #define Gid_t $gidtype        /* Type for getgid(), etc... */
  805.  
  806. /* I_DIRENT:
  807.  *    This symbol, if defined, indicates to the C program that it should
  808.  *    include <dirent.h>. Using this symbol also triggers the definition
  809.  *    of the Direntry_t define which ends up being 'struct dirent' or
  810.  *    'struct direct' depending on the availability of <dirent.h>.
  811.  */
  812. /* DIRNAMLEN:
  813.  *    This symbol, if defined, indicates to the C program that the length
  814.  *    of directory entry names is provided by a d_namlen field.  Otherwise
  815.  *    you need to do strlen() on the d_name field.
  816.  */
  817. /* Direntry_t:
  818.  *    This symbol is set to 'struct direct' or 'struct dirent' depending on
  819.  *    whether dirent is available or not. You should use this pseudo type to
  820.  *    portably declare your directory entries.
  821.  */
  822. #$i_dirent I_DIRENT        /**/
  823. #$d_dirnamlen DIRNAMLEN    /**/
  824. #define Direntry_t $direntrytype
  825.  
  826. /* I_DLFCN:
  827.  *    This symbol, if defined, indicates that <dlfcn.h> exists and should
  828.  *    be included.
  829.  */
  830. #$i_dlfcn I_DLFCN        /**/
  831.  
  832. /* I_FCNTL:
  833.  *    This manifest constant tells the C program to include <fcntl.h>.
  834.  */
  835. #$i_fcntl I_FCNTL    /**/
  836.  
  837. /* I_FLOAT:
  838.  *    This symbol, if defined, indicates to the C program that it should
  839.  *    include <float.h> to get definition of symbols like DBL_MAX or
  840.  *    DBL_MIN, i.e. machine dependent floating point values.
  841.  */
  842. #$i_float I_FLOAT        /**/
  843.  
  844. /* I_GRP:
  845.  *    This symbol, if defined, indicates to the C program that it should
  846.  *    include <grp.h>.
  847.  */
  848. #$i_grp I_GRP        /**/
  849.  
  850. /* I_LIMITS:
  851.  *    This symbol, if defined, indicates to the C program that it should
  852.  *    include <limits.h> to get definition of symbols like WORD_BIT or
  853.  *    LONG_MAX, i.e. machine dependant limitations.
  854.  */
  855. #$i_limits I_LIMITS        /**/
  856.  
  857. /* I_MATH:
  858.  *    This symbol, if defined, indicates to the C program that it should
  859.  *    include <math.h>.
  860.  */
  861. #$i_math I_MATH        /**/
  862.  
  863. /* I_MEMORY:
  864.  *    This symbol, if defined, indicates to the C program that it should
  865.  *    include <memory.h>.
  866.  */
  867. #$i_memory I_MEMORY        /**/
  868.  
  869. /* I_NDBM:
  870.  *    This symbol, if defined, indicates that ndbm.h exists and should
  871.  *    be included.
  872.  */
  873. #$i_ndbm I_NDBM    /**/
  874.  
  875. /* I_NETINET_IN:
  876.  *    This symbol, if defined, indicates to the C program that it should
  877.  *    include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
  878.  */
  879. #$i_niin I_NETINET_IN    /**/
  880.  
  881. /* I_PWD:
  882.  *    This symbol, if defined, indicates to the C program that it should
  883.  *    include <pwd.h>.
  884.  */
  885. /* PWQUOTA:
  886.  *    This symbol, if defined, indicates to the C program that struct passwd
  887.  *    contains pw_quota.
  888.  */
  889. /* PWAGE:
  890.  *    This symbol, if defined, indicates to the C program that struct passwd
  891.  *    contains pw_age.
  892.  */
  893. /* PWCHANGE:
  894.  *    This symbol, if defined, indicates to the C program that struct passwd
  895.  *    contains pw_change.
  896.  */
  897. /* PWCLASS:
  898.  *    This symbol, if defined, indicates to the C program that struct passwd
  899.  *    contains pw_class.
  900.  */
  901. /* PWEXPIRE:
  902.  *    This symbol, if defined, indicates to the C program that struct passwd
  903.  *    contains pw_expire.
  904.  */
  905. /* PWCOMMENT:
  906.  *    This symbol, if defined, indicates to the C program that struct passwd
  907.  *    contains pw_comment.
  908.  */
  909. #$i_pwd I_PWD        /**/
  910. #$d_pwquota PWQUOTA    /**/
  911. #$d_pwage PWAGE    /**/
  912. #$d_pwchange PWCHANGE    /**/
  913. #$d_pwclass PWCLASS    /**/
  914. #$d_pwexpire PWEXPIRE    /**/
  915. #$d_pwcomment PWCOMMENT    /**/
  916.  
  917. /* I_STDDEF:
  918.  *    This symbol, if defined, indicates that <stddef.h> exists and should
  919.  *    be included.
  920.  */
  921. #$i_stddef I_STDDEF    /**/
  922.  
  923. /* I_STDLIB:
  924.  *    This symbol, if defined, indicates that <stdlib.h> exists and should
  925.  *    be included.
  926.  */
  927. #$i_stdlib I_STDLIB        /**/
  928.  
  929. /* I_STRING:
  930.  *    This symbol, if defined, indicates to the C program that it should
  931.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  932.  */
  933. #$i_string I_STRING        /**/
  934.  
  935. /* I_SYS_DIR:
  936.  *    This symbol, if defined, indicates to the C program that it should
  937.  *    include <sys/dir.h>.
  938.  */
  939. #$i_sysdir I_SYS_DIR        /**/
  940.  
  941. /* I_SYS_FILE:
  942.  *    This symbol, if defined, indicates to the C program that it should
  943.  *    include <sys/file.h> to get definition of R_OK and friends.
  944.  */
  945. #$i_sysfile I_SYS_FILE        /**/
  946.  
  947. /* I_SYS_IOCTL:
  948.  *    This symbol, if defined, indicates that <sys/ioctl.h> exists and should
  949.  *    be included. Otherwise, include <sgtty.h> or <termio.h>.
  950.  */
  951. #$i_sysioctl    I_SYS_IOCTL        /**/
  952.  
  953. /* I_SYS_NDIR:
  954.  *    This symbol, if defined, indicates to the C program that it should
  955.  *    include <sys/ndir.h>.
  956.  */
  957. #$i_sysndir I_SYS_NDIR    /**/
  958.  
  959. /* I_SYS_PARAM:
  960.  *    This symbol, if defined, indicates to the C program that it should
  961.  *    include <sys/param.h>.
  962.  */
  963. #$i_sysparam I_SYS_PARAM        /**/
  964.  
  965. /* I_SYS_SELECT:
  966.  *    This symbol, if defined, indicates to the C program that it should
  967.  *    include <sys/select.h> in order to get definition of struct timeval.
  968.  */
  969. #$i_sysselct I_SYS_SELECT    /**/
  970.  
  971. /* I_SYS_TIMES:
  972.  *    This symbol, if defined, indicates to the C program that it should
  973.  *    include <sys/times.h>.
  974.  */
  975. #$i_systimes    I_SYS_TIMES        /**/
  976.  
  977. /* I_TERMIO:
  978.  *    This symbol, if defined, indicates that the program should include
  979.  *    <termio.h> rather than <sgtty.h>.  There are also differences in
  980.  *    the ioctl() calls that depend on the value of this symbol.
  981.  */
  982. /* I_TERMIOS:
  983.  *    This symbol, if defined, indicates that the program should include
  984.  *    the POSIX termios.h rather than sgtty.h or termio.h.
  985.  *    There are also differences in the ioctl() calls that depend on the
  986.  *    value of this symbol.
  987.  */
  988. /* I_SGTTY:
  989.  *    This symbol, if defined, indicates that the program should include
  990.  *    <sgtty.h> rather than <termio.h>.  There are also differences in
  991.  *    the ioctl() calls that depend on the value of this symbol.
  992.  */
  993. #$i_termio I_TERMIO        /**/
  994. #$i_termios I_TERMIOS        /**/
  995. #$i_sgtty I_SGTTY        /**/
  996.  
  997. /* I_TIME:
  998.  *    This symbol, if defined, indicates to the C program that it should
  999.  *    include <time.h>.
  1000.  */
  1001. /* I_SYS_TIME:
  1002.  *    This symbol, if defined, indicates to the C program that it should
  1003.  *    include <sys/time.h>.
  1004.  */
  1005. /* I_SYS_TIME_KERNEL:
  1006.  *    This symbol, if defined, indicates to the C program that it should
  1007.  *    include <sys/time.h> with KERNEL defined.
  1008.  */
  1009. #$i_time I_TIME        /**/
  1010. #$i_systime I_SYS_TIME        /**/
  1011. #$i_systimek I_SYS_TIME_KERNEL        /**/
  1012.  
  1013. /* I_UNISTD:
  1014.  *    This symbol, if defined, indicates to the C program that it should
  1015.  *    include <unistd.h>.
  1016.  */
  1017. #$i_unistd I_UNISTD        /**/
  1018.  
  1019. /* I_UTIME:
  1020.  *    This symbol, if defined, indicates to the C program that it should
  1021.  *    include <utime.h>.
  1022.  */
  1023. #$i_utime I_UTIME        /**/
  1024.  
  1025. /* I_STDARG:
  1026.  *    This symbol, if defined, indicates that <stdarg.h> exists and should
  1027.  *    be included.
  1028.  */
  1029. /* I_VARARGS:
  1030.  *    This symbol, if defined, indicates to the C program that it should
  1031.  *    include <varargs.h>.
  1032.  */
  1033. #$i_stdarg I_STDARG        /**/
  1034. #$i_varargs I_VARARGS    /**/
  1035.  
  1036. /* I_VFORK:
  1037.  *    This symbol, if defined, indicates to the C program that it should
  1038.  *    include vfork.h.
  1039.  */
  1040. #$i_vfork I_VFORK    /**/
  1041.  
  1042. /* INTSIZE:
  1043.  *    This symbol contains the size of an int, so that the C preprocessor
  1044.  *    can make decisions based on it.
  1045.  */
  1046. #define INTSIZE $intsize        /**/
  1047.  
  1048. /* Off_t:
  1049.  *    This symbol holds the type used to declare offsets in the kernel.
  1050.  *    It can be int, long, off_t, etc... It may be necessary to include
  1051.  *    <sys/types.h> to get any typedef'ed information.
  1052.  */
  1053. #define Off_t $lseektype        /* <offset> type */
  1054.  
  1055. /* PRIVLIB:
  1056.  *    This symbol contains the name of the private library for this package.
  1057.  *    The library is private in the sense that it needn't be in anyone's
  1058.  *    execution path, but it should be accessible by the world.  The program
  1059.  *    should be prepared to do ~ expansion.
  1060.  */
  1061. #define PRIVLIB "$privlib"        /**/
  1062.  
  1063. /* CAN_PROTOTYPE:
  1064.  *    If defined, this macro indicates that the C compiler can handle
  1065.  *    function prototypes.
  1066.  */
  1067. /* _:
  1068.  *    This macro is used to declare function parameters for folks who want
  1069.  *    to make declarations with prototypes using a different style than
  1070.  *    the above macros.  Use double parentheses.  For example:
  1071.  *
  1072.  *        int main _((int argc, char *argv[]));
  1073.  */
  1074. #$prototype    CAN_PROTOTYPE    /**/
  1075. #ifdef CAN_PROTOTYPE
  1076. #define    _(args) args
  1077. #else
  1078. #define    _(args) ()
  1079. #endif
  1080.  
  1081. /* RANDBITS:
  1082.  *    This symbol contains the number of bits of random number the rand()
  1083.  *    function produces.  Usual values are 15, 16, and 31.
  1084.  */
  1085. #define RANDBITS $randbits        /**/
  1086.  
  1087. /* SCRIPTDIR:
  1088.  *    This symbol holds the name of the directory in which the user wants
  1089.  *    to put publicly executable scripts for the package in question.  It
  1090.  *    is often a directory that is mounted across diverse architectures.
  1091.  *    Programs must be prepared to deal with ~name expansion.
  1092.  */
  1093. #define SCRIPTDIR "$scriptdir"    /**/
  1094.  
  1095. /* Select_fd_set_t:
  1096.  *    This symbol holds the type used for the 2nd, 3rd, and 4th
  1097.  *    arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
  1098.  *    is defined, and 'int *' otherwise.  This is only useful if you 
  1099.  *    have select(), of course.
  1100.  */
  1101. #define Select_fd_set_t     $selecttype    /**/
  1102.  
  1103. /* SIG_NAME:
  1104.  *    This symbol contains a list of signal names in order. This is intended
  1105.  *    to be used as a static array initialization, like this:
  1106.  *        char *sig_name[] = { SIG_NAME };
  1107.  *    The signals in the list are separated with commas, and each signal
  1108.  *    is surrounded by double quotes. There is no leading SIG in the signal
  1109.  *    name, i.e. SIGQUIT is known as "QUIT".
  1110.  */
  1111. #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`"    /**/
  1112.  
  1113. /* Size_t:
  1114.  *    This symbol holds the type used to declare length parameters
  1115.  *    for string functions.  It is usually size_t, but may be
  1116.  *    unsigned long, int, etc.  It may be necessary to include
  1117.  *    <sys/types.h> to get any typedef'ed information.
  1118.  */
  1119. #define Size_t $sizetype     /* length paramater for string functions */
  1120.  
  1121. /* STDCHAR:
  1122.  *    This symbol is defined to be the type of char used in stdio.h.
  1123.  *    It has the values "unsigned char" or "char".
  1124.  */
  1125. #define STDCHAR $stdchar    /**/
  1126.  
  1127. /* Uid_t:
  1128.  *    This symbol holds the type used to declare user ids in the kernel.
  1129.  *    It can be int, ushort, uid_t, etc... It may be necessary to include
  1130.  *    <sys/types.h> to get any typedef'ed information.
  1131.  */
  1132. #define Uid_t $uidtype        /* UID type */
  1133.  
  1134. /* VOIDFLAGS:
  1135.  *    This symbol indicates how much support of the void type is given by this
  1136.  *    compiler.  What various bits mean:
  1137.  *
  1138.  *        1 = supports declaration of void
  1139.  *        2 = supports arrays of pointers to functions returning void
  1140.  *        4 = supports comparisons between pointers to void functions and
  1141.  *            addresses of void functions
  1142.  *        8 = suports declaration of generic void pointers
  1143.  *
  1144.  *    The package designer should define VOIDUSED to indicate the requirements
  1145.  *    of the package.  This can be done either by #defining VOIDUSED before
  1146.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  1147.  *    latter approach is taken, only those flags will be tested.  If the
  1148.  *    level of void support necessary is not present, defines void to int.
  1149.  */
  1150. #ifndef VOIDUSED
  1151. #define VOIDUSED $defvoidused
  1152. #endif
  1153. #define VOIDFLAGS $voidflags
  1154. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  1155. #define void int        /* is void to be avoided? */
  1156. #define M_VOID            /* Xenix strikes again */
  1157. #endif
  1158.  
  1159. /* EUNICE:
  1160.  *    This symbol, if defined, indicates that the program is being compiled
  1161.  *    under the EUNICE package under VMS.  The program will need to handle
  1162.  *    things like files that don't go away the first time you unlink them,
  1163.  *    due to version numbering.  It will also need to compensate for lack
  1164.  *    of a respectable link() command.
  1165.  */
  1166. /* VMS:
  1167.  *    This symbol, if defined, indicates that the program is running under
  1168.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  1169.  */
  1170. #$d_eunice EUNICE        /**/
  1171. #$d_eunice VMS        /**/
  1172.  
  1173. /* LOC_SED:
  1174.  *    This symbol holds the complete pathname to the sed program.
  1175.  */
  1176. #define LOC_SED     "$sed"    /**/
  1177.  
  1178. /* ARCHLIB:
  1179.  *    This variable, if defined, holds the name of the directory in
  1180.  *    which the user wants to put architecture-dependent public
  1181.  *    library files for $package.  It is most often a local directory
  1182.  *    such as /usr/local/lib.  Programs using this variable must be
  1183.  *    prepared to deal with filename expansion.  If ARCHLIB is the
  1184.  *    same as PRIVLIB, it is not defined, since presumably the
  1185.  *    program already searches PRIVLIB.
  1186.  */
  1187. #$d_archlib ARCHLIB "$archlib"        /**/
  1188.  
  1189. /* CAT2:
  1190.  *    This macro catenates 2 tokens together.
  1191.  */
  1192. /* STRINGIFY:
  1193.  *    This macro surrounds its token with double quotes.
  1194.  */
  1195. #if $cpp_stuff == 1
  1196. #define CAT2(a,b)a/**/b
  1197. #define CAT3(a,b,c)a/**/b/**/c
  1198. #define CAT4(a,b,c,d)a/**/b/**/c/**/d
  1199. #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
  1200. #define STRINGIFY(a)"a"
  1201.         /* If you can get stringification with catify, tell me how! */
  1202. #endif
  1203. #if $cpp_stuff == 42
  1204. #define CAT2(a,b)a ## b
  1205. #define CAT3(a,b,c)a ## b ## c
  1206. #define CAT4(a,b,c,d)a ## b ## c ## d
  1207. #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
  1208. #define StGiFy(a)# a
  1209. #define STRINGIFY(a)StGiFy(a)
  1210. #define SCAT2(a,b)StGiFy(a) StGiFy(b)
  1211. #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
  1212. #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
  1213. #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
  1214. #endif
  1215. #ifndef CAT2
  1216. #include "Bletch: How does this C preprocessor catenate tokens?"
  1217. #endif
  1218.  
  1219. /* GNUC_ATTRIBUTE_CHECK:
  1220.  *    This symbol indicates the C compiler can check for function attributes,
  1221.  *    such as printf formats.
  1222.  */
  1223. #$d_attrib     GNUC_ATTRIBUTE_CHECK     /* */
  1224.  
  1225. /* VOID_CLOSEDIR:
  1226.  *    This symbol, if defined, indicates that the closedir() routine
  1227.  *    does not return a value.
  1228.  */
  1229. #$d_void_closedir VOID_CLOSEDIR        /**/
  1230.  
  1231. /* HAS_DLERROR:
  1232.  *    This symbol, if defined, indicates that the dlerror routine is
  1233.  *    available.
  1234.  */
  1235. #$d_dlerror HAS_DLERROR        /**/
  1236.  
  1237. /* DLSYM_NEEDS_UNDERSCORE:
  1238.  *    This symbol, if defined, indicates that we need to prepend an
  1239.  *    underscore to the symbol name before calling dlsym().  This only
  1240.  *    makes sense if you *have* dlsym, which we will presume is the
  1241.  *    case if you're using dl_dlopen.xs.
  1242.  */
  1243. #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE     /* */
  1244.  
  1245. /* SETUID_SCRIPTS_ARE_SECURE_NOW:
  1246.  *    This symbol, if defined, indicates that the bug that prevents
  1247.  *    setuid scripts from being secure is not present in this kernel.
  1248.  */
  1249. /* DOSUID:
  1250.  *    This symbol, if defined, indicates that the C program should
  1251.  *    check the script that it is executing for setuid/setgid bits, and
  1252.  *    attempt to emulate setuid/setgid on systems that have disabled
  1253.  *    setuid #! scripts because the kernel can't do it securely.
  1254.  *    It is up to the package designer to make sure that this emulation
  1255.  *    is done securely.  Among other things, it should do an fstat on
  1256.  *    the script it just opened to make sure it really is a setuid/setgid
  1257.  *    script, it should make sure the arguments passed correspond exactly
  1258.  *    to the argument on the #! line, and it should not trust any
  1259.  *    subprocesses to which it must pass the filename rather than the
  1260.  *    file descriptor of the script to be executed.
  1261.  */
  1262. #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW    /**/
  1263.  
  1264. #$d_dosuid DOSUID        /**/
  1265.  
  1266. /* HAS_DREM:
  1267.  *    This symbol, if defined, indicates that the drem routine is
  1268.  *    available.  This is a Pyramid routine that is the same as
  1269.  *    fmod.
  1270.  */
  1271. #$d_drem HAS_DREM        /**/
  1272.  
  1273. /* HAS_FMOD:
  1274.  *    This symbol, if defined, indicates that the fmod routine is
  1275.  *    available.
  1276.  */
  1277. #$d_fmod HAS_FMOD        /**/
  1278.  
  1279. /* Gconvert:
  1280.  *    This preprocessor macro is defined to convert a floating point
  1281.  *    number to a string without a trailing decimal point.  This
  1282.  *    emulates the behavior of sprintf("%g"), but is sometimes much more
  1283.  *    efficient.  If gconvert() is not available, but gcvt() drops the
  1284.  *    trailing decimal point, then gcvt() is used.  If all else fails,
  1285.  *    a macro using sprintf("%g") is used.
  1286.  */
  1287. #define Gconvert(x,n,t,b) $d_Gconvert
  1288.  
  1289. /* HAS_ISASCII:
  1290.  *    This manifest constant lets the C program know that isascii 
  1291.  *    is available.
  1292.  */
  1293. #$d_isascii HAS_ISASCII        /**/
  1294.  
  1295. /* USE_LINUX_STDIO:
  1296.  *    This symbol is defined if this system has a FILE structure declaring
  1297.  *    _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
  1298.  */
  1299. #$d_linuxstd USE_LINUX_STDIO     /**/
  1300.  
  1301. /* HAS_LOCALECONV:
  1302.  *    This symbol, if defined, indicates that the localeconv routine is
  1303.  *    available for numeric and monetary formatting conventions.
  1304.  */
  1305. #$d_locconv HAS_LOCALECONV    /**/
  1306.  
  1307. /* HAS_MKFIFO:
  1308.  *    This symbol, if defined, indicates that the mkfifo routine is
  1309.  *    available.
  1310.  */
  1311. #$d_mkfifo HAS_MKFIFO        /**/
  1312.  
  1313. /* HAS_PATHCONF:
  1314.  *    This symbol, if defined, indicates that pathconf() is available
  1315.  *    to determine file-system related limits and options associated
  1316.  *    with a given filename.
  1317.  */
  1318. /* HAS_FPATHCONF:
  1319.  *    This symbol, if defined, indicates that pathconf() is available
  1320.  *    to determine file-system related limits and options associated
  1321.  *    with a given open file descriptor.
  1322.  */
  1323. #$d_pathconf HAS_PATHCONF        /**/
  1324. #$d_fpathconf HAS_FPATHCONF        /**/
  1325.  
  1326. /* HAS_SAFE_BCOPY:
  1327.  *    This symbol, if defined, indicates that the bcopy routine is available
  1328.  *    to copy potentially overlapping memory blocks. Otherwise you should
  1329.  *    probably use memmove() or memcpy(). If neither is defined, roll your
  1330.  *    own version.
  1331.  */
  1332. #$d_safebcpy HAS_SAFE_BCOPY    /**/
  1333.  
  1334. /* HAS_SAFE_MEMCPY:
  1335.  *    This symbol, if defined, indicates that the memcpy routine is available
  1336.  *    to copy potentially overlapping memory blocks. Otherwise you should
  1337.  *    probably use memmove() or memcpy(). If neither is defined, roll your
  1338.  *    own version.
  1339.  */
  1340. #$d_safemcpy HAS_SAFE_MEMCPY    /**/
  1341.  
  1342. /* HAS_SETPGRP:
  1343.  *    This symbol, if defined, indicates that the setpgrp routine is
  1344.  *    available to set the current process group.
  1345.  */
  1346. /* USE_BSDPGRP:
  1347.  *    This symbol, if defined, indicates that the BSD notion of process
  1348.  *    group is to be used. For instance, you have to say setpgrp(pid, pgrp)
  1349.  *    instead of the USG setpgrp().
  1350.  */
  1351. #$d_setpgrp HAS_SETPGRP        /**/
  1352. #$d_bsdpgrp USE_BSDPGRP        /**/
  1353.  
  1354. /* HAS_SYSCONF:
  1355.  *    This symbol, if defined, indicates that sysconf() is available
  1356.  *    to determine system related limits and options.
  1357.  */
  1358. #$d_sysconf HAS_SYSCONF        /**/
  1359.  
  1360. /* Time_t:
  1361.  *    This symbol holds the type returned by time(). It can be long,
  1362.  *    or time_t on BSD sites (in which case <sys/types.h> should be
  1363.  *    included).
  1364.  */
  1365. #define Time_t $timetype        /* Time type */
  1366.  
  1367. /* USE_DYNAMIC_LOADING:
  1368.  *    This symbol, if defined, indicates that dynamic loading of
  1369.  *    some sort is available.
  1370.  */
  1371. #$usedl USE_DYNAMIC_LOADING        /**/
  1372.  
  1373. /* Groups_t:
  1374.  *    This symbol holds the type used for the second argument to
  1375.  *    getgroups().  Usually, this is the same of gidtype, but
  1376.  *    sometimes it isn't.  It can be int, ushort, uid_t, etc... 
  1377.  *    It may be necessary to include <sys/types.h> to get any 
  1378.  *    typedef'ed information.  This is only required if you have
  1379.  *    getgroups().
  1380.  */
  1381. #ifdef HAS_GETGROUPS
  1382. #define Groups_t $groupstype    /* Type for 2nd arg to getgroups() */
  1383. #endif
  1384.  
  1385. /* I_NET_ERRNO:
  1386.  *    This symbol, if defined, indicates that <net/errno.h> exists and 
  1387.  *    should be included.
  1388.  */
  1389. #$i_neterrno I_NET_ERRNO        /**/
  1390.  
  1391. /* Malloc_t:
  1392.  *    This symbol is the type of pointer returned by malloc and realloc.
  1393.  */
  1394. #define Malloc_t $malloctype            /**/
  1395.  
  1396. /* MYMALLOC:
  1397.  *    This symbol, if defined, indicates that we're using our own malloc.
  1398.  */
  1399. #$d_mymalloc MYMALLOC            /**/
  1400.  
  1401. /* Mode_t:
  1402.  *    This symbol holds the type used to declare file modes 
  1403.  *    for systems calls.  It is usually mode_t, but may be
  1404.  *    int or unsigned short.  It may be necessary to include <sys/types.h>
  1405.  *    to get any typedef'ed information.
  1406.  */
  1407. #define Mode_t $modetype     /* file mode parameter for system calls*/
  1408.  
  1409. /* SSize_t:
  1410.  *    This symbol holds the type used by functions that return
  1411.  *    a count of bytes or an error condition.  It must be a signed type.
  1412.  *    It is usually ssize_t, but may be long or int, etc.
  1413.  *    It may be necessary to include <sys/types.h> or <unistd.h>
  1414.  *    to get any typedef'ed information.
  1415.  *    We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
  1416.  */
  1417. #define SSize_t $ssizetype     /* signed count of bytes */
  1418.  
  1419. #endif
  1420. !GROK!THIS!
  1421.